<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- Bootstrap CSS-->
    <link rel="stylesheet" href="../assets/vendor/bootstrap/css/bootstrap.css">
    <!-- Font Awesome CSS-->
    <link rel="stylesheet" href="../assets/vendor/font-awesome/css/font-awesome.min.css">
    <!-- Custom Font Icons CSS-->
    <link rel="stylesheet" href="../assets/css/font.css">
    <!-- theme stylesheet-->
    <link rel="stylesheet" href="../assets/css/style.default.css" id="theme-stylesheet">
    <!-- Custom stylesheet - for your changes-->
    <link rel="stylesheet" href="../assets/css/custom.css">
    <title>会议详情</title>
    <style>

        .myTitle > input{
            float: right;
            margin-left: 15px;
        }

    </style>
</head>
<body>
<%@ include file="publicjsp/head.jsp" %>
<div class="d-flex align-items-stretch">
    <!-- Sidebar Navigation-->
    <nav id="sidebar">
        <!-- Sidebar Header-->
        <%@ include file="publicjsp/sideHeader.jsp" %>
        <!-- Sidebar Navidation Menus--><span class="heading">Main</span>
        <ul class="list-unstyled">
            <li><a href="${pageContext.request.contextPath}/view/gohome"> <i class="icon-home"></i>主页 </a></li>
            <li><a href="#userDropdown"  data-toggle="collapse" > <i class="icon-windows"></i>用户列表</a>
                <ul id="userDropdown" class="collapse list-unstyled">
                    <li><a href="${pageContext.request.contextPath}/user/lookUser">查看用户</a></li>
                    <li><a href="${pageContext.request.contextPath}/user/myFocus">我关注的用户</a></li>
                    <li><a href="${pageContext.request.contextPath}/article/articleList">发布文章</a></li>
                    <li><a href="${pageContext.request.contextPath}/article/myArticleList">我的收藏</a></li>
                </ul>
            </li>
            <!--<li><a href="login.html"> <i class="icon-logout"></i>Login page </a></li>-->

            <li><a href="#depDropdown"  data-toggle="collapse" aria-expanded="true"> <i class="icon-windows2"></i>部门列表</a>
                <ul id="depDropdown" class="collapse show ">
                    <li><a href="${pageContext.request.contextPath}/dept/departmentList">全部部门</a></li>
                    <li><a href="${pageContext.request.contextPath}/meet/meeting">会议系统</a></li>
                </ul>
            </li>

        </ul>

    </nav>
    <!-- Sidebar Navigation end-->
    <div class="page-content">
        <div class="page-header">
            <div class="container-fluid">
                <h2 class="h5 no-margin-bottom">会议详情</h2>
            </div>
        </div>

        <section class="no-padding-bottom">

            <div class="myTitle">
                <h3 class="text-center">${requestScope.meeting.title}</h3>
                <c:if test=""></c:if>
                <c:if test="${requestScope.meeting.status == 3}">
                    <input type="submit" value="会议已取消" class="btn btn-danger" disabled="disabled">
                </c:if>
                <c:if test="${requestScope.meeting.status == 2}">
                    <c:if test="${requestScope.meeting.userId == requestScope.uId}">
                        <input data-id="${requestScope.meeting.id}" type="submit" value="已参加会议" class="btn btn-info" disabled="disabled">
                    </c:if>
                    <c:if test="${requestScope.isCome != null && requestScope.isCome[0] == 0}">
                        <input data-id="${requestScope.meeting.id}" type="submit" value="未参加会议" class="btn btn-danger" disabled="disabled">
                    </c:if>
                    <c:if test="${requestScope.isCome != null && requestScope.isCome[0] == 1}">
                        <input data-id="${requestScope.meeting.id}" type="submit" value="已参加会议" class="btn btn-info" disabled="disabled">
                    </c:if>
                </c:if>
                <c:if test="${requestScope.meeting.status == 1}">
                    <c:if test="${requestScope.meeting.userId == requestScope.uId}">
                        <input data-id="${requestScope.meeting.id}" type="submit" value="会议进行中" class="btn btn-info" disabled="disabled">
                    </c:if>
                    <c:if test="${requestScope.isCome != null && requestScope.isCome[0] == 0}">
                        <input data-id="${requestScope.meeting.id}" type="submit" value="参加会议" class="btn btn-info join">
                    </c:if>
                    <c:if test="${requestScope.isCome != null && requestScope.isCome[0] == 1}">
                        <input data-id="${requestScope.meeting.id}" type="submit" value="已确认参加会议" class="btn btn-info" disabled="disabled">
                    </c:if>
                </c:if>
                <c:if test="${requestScope.meeting.status == 0}">
                    <c:if test="${requestScope.meeting.userId == requestScope.uId}">
                        <input data-id="${requestScope.meeting.id}" type="submit" value="取消会议" class="btn btn-danger cancel">
                    </c:if>
                    <c:if test="${requestScope.isCome != null && requestScope.isCome[0] == 0}">
                        <input data-id="${requestScope.meeting.id}" type="submit" value="参加会议" class="btn btn-info join">
                    </c:if>
                    <c:if test="${requestScope.isCome != null && requestScope.isCome[0] == 1}">
                        <input data-id="${requestScope.meeting.id}" type="submit" value="已确认参加会议" class="btn btn-info" disabled="disabled">
                    </c:if>
                </c:if>
                <%--<c:if test="${requestScope.uId == requestScope.meeting.userId}"></c:if>--%>
                <%--<input type="submit" value="取消会议" class="btn btn-danger">--%>
                <%--<input type="submit" value="参加会议" class="btn btn-info">--%>

            </div>

            <div class="myContent">
                <p class="h6"><strong>部门：</strong>${requestScope.meeting.deptName}</p>
                <p class="h6"><strong>应到：</strong>${requestScope.totalPerson}<span>人</span></p>
                <p class="h6"><strong>实到：</strong>${requestScope.totalPerson-requestScope.absence}<span>人</span></p>
                <p class="h6"><strong>未到：</strong>${requestScope.absence}<span>人</span></p>
                <textarea style="padding: 2px" disabled="disabled" class="form-control" rows="11">${requestScope.meeting.content}</textarea>


            </div>

            <div class="text-right myList">
                <p>日期：${requestScope.meeting.publishDate}</p>
            </div>
        </section>
        <%@ include file="publicjsp/footer.jsp" %>
    </div>
</div>

<!-- JavaScript files-->
<script src="../assets/vendor/jquery/jquery.min.js"></script>
<script src="../assets/vendor/popper.js/umd/popper.min.js"> </script>
<script src="../assets/vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="../assets/vendor/jquery.cookie/jquery.cookie.js"> </script>
<script src="../assets/vendor/chart.js/Chart.min.js"></script>
<script src="../assets/vendor/jquery-validation/jquery.validate.min.js"></script>
<script src="../assets/js/charts-home.js"></script>
<script src="../assets/js/front.js"></script>
<script src="../assets/js/custom.js"></script>

</body>
</html>